package SmartMeeting.builders;
import java.util.List;
import SmartMeeting.Entity.Meeting;

public class Director {
    private final MeetingBuilder meetingBuilder;

    public Director(MeetingBuilder meetingBuilder) {
        this.meetingBuilder = meetingBuilder;
    }

    public Meeting construct(String agent, String time, String place, List<String> participants) {
        meetingBuilder.setAgent(agent);//此时已经生产了会议id
        meetingBuilder.setTime(time);
        meetingBuilder.setPlace(place);
        meetingBuilder.setParticipants(participants);
        return meetingBuilder.build();
    }
}
